# $Id: PKGBUILD 87359 2013-03-30 10:58:32Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: JD Steffen <jd at steffennet dot org>

pkgname=simutrans-pak64
pkgver=112.2
_pkgver=112-2
pkgrel=1
pkgdesc="Low resolution graphics set for Simutrans"
arch=('any')
url="http://simutrans.com/"
license=('PerlArtistic')
options=('!strip')
source=(http://downloads.sourceforge.net/simutrans/simupak64-$_pkgver.zip)
md5sums=('de775b110a4861a865c7c62c9649f3e1')

package() {
  cd "$srcdir"
  chmod -R 644 simutrans

  #data
  mkdir -p "$pkgdir/usr/share/games/simutrans"
  cp -r simutrans/pak "$pkgdir/usr/share/games/simutrans"

  find "$pkgdir" -type f -exec chmod 644 {} \;
  find "$pkgdir" -type d -exec chmod 755 {} \;
}
